import {
    DIC
} from '@/const/dic'
export const storeApplyOption = {
    border: true,
    selection: true,
    columnBtn: false,
    refreshBtn: false,
    addBtn: false,
    delBtn: false,
    editBtn: false,
    menuWidth:290,
    menuAlign: 'center',
    formWidth: '100%',
    formtitle:"企业申请",
    align: 'center',
    stripe: true,
    label:"企业申请添加",
    size:'small',
    card:true,
    dicData : DIC.SHOPSTATUS,
    group:[
        {
            icon:'el-icon-info',
            label: '所属区域',
            prop: 'group',
            column: [
                // /**
                //  * 店铺区域查看时显示开始
                //  */
                // {
                //     label: '省份',
                //     prop: 'provincesId',
                //     fixed: true,
                //     type: 'select',
                //     span:8,
                //     props: {
                //         label: 'areaName',
                //         value: 'id'
                //     },
                //     dicUrl: `/shop/shopArea/`,
                //     dicMethod:'get',
                //     dicData:"provincesId",
                //     addDisplay:false,
                //     editDisplay:false,
                //     viewDisplay:true,
                //     rules: [
                //         {
                //             required: true,
                //             message: '请选择省份',
                //             trigger: 'blur'
                //         }
                //     ]
                // },
                // {
                //     label: '城市',
                //     prop: 'cityId',
                //     fixed: true,
                //     type: 'select',
                //     span:8,
                //     props: {
                //         label: 'areaName',
                //         value: 'id'
                //     },
                //     dicUrl: `/shop/shopArea/`,
                //     dicMethod:'get',
                //     dicData:"cityId",
                //     addDisplay:false,
                //     editDisplay:false,
                //     viewDisplay:true,
                //     rules: [
                //         {
                //             required: true,
                //             message: '请选择省份',
                //             trigger: 'blur'
                //         }
                //     ]
                // },
                // {
                //     label: '区域',
                //     prop: 'areaId',
                //     fixed: true,
                //     type: 'select',
                //     span:8,
                //     props: {
                //         label: 'areaName',
                //         value: 'id'
                //     },
                //     dicUrl: `/shop/shopArea`,
                //     dicMethod:'get',
                //     dicData:"areaId",
                //     addDisplay:false,
                //     editDisplay:false,
                //     viewDisplay:true,
                //     rules: [
                //         {
                //             required: true,
                //             message: '请选择省份',
                //             trigger: 'blur'
                //         }
                //     ]
                // },
                /**
                 * 店铺区域查看时显示结束
                 */

                /**
                 * 店铺区域编辑时显示开始
                 */                {
                    label: '省份',
                    prop: 'provincesId',
                    fixed: true,
                    type: 'select',
                    viewDisplay:true,
                    span:8,
                    props: {
                        label: 'areaName',
                        value: 'id'
                    },
                    cascaderItem: ['cityId', 'areaId'],
                    cascaderChange: true,
                    dicUrl: `/shop/shopArea/getCity/all`,
                    rules: [
                        {
                            required: true,
                            message: '请选择省份',
                            trigger: 'blur'
                        }
                    ]
                },

                {
                    label: '城市',
                    prop: 'cityId',
                    type: 'select',
                    span:8,
                    props: {
                        label: 'areaName',
                        value: 'id'
                    },
                    defaultIndex: 1,
                    viewDisplay:true,
                    dicFlag: false,
                    dicUrl: `/shop/shopArea/getCity/{{key}}`,
                    rules: [
                        {
                            required: true,
                            message: '请选择城市',
                            trigger: 'blur'
                        }
                    ]
                },
                /**区县区域ID*/
                {
                    label: '区县',
                    prop: 'areaId',
                    type: 'select',
                    span:8,
                    props: {
                        label: 'areaName',
                        value: 'id'
                    },
                    defaultIndex: 1,
                    dicFlag: false,
                    dicUrl: `/shop/shopArea/getCity/{{key}}`,
                    viewDisplay:true,

                    rules: [
                        {
                            required: true,
                            message: '请选择城市',
                            trigger: 'blur'
                        }
                    ]
                },
                {
                    label: "详细地址",
                    prop: "address",
                    width: "200",
                    span:25,
                    fixed: true,
                    row:true,
                    rules: [{
                        required: true,
                        message: "",
                        trigger: "blur"
                    }]
                },
                {
                    label: "一级分类",
                    span:8,
                    type: 'select',
                    prop: "oneClassId",
                    fixed: true,
                    props: {
                        label: 'className',
                        value: 'id'
                    },
                    cascaderItem: ['twoClassId'],
                    cascaderChange: true,
                    dicUrl: `/shop/shopClass/bigClass?str=1`,
                    rules: [{
                        required: true,
                        message: "",
                        trigger: "blur"
                    }]
                },
                {
                    label: '二级分类',
                    prop: 'twoClassId',
                    type: 'select',
                    span:8,
                    props: {
                        label: 'className',
                        value: 'id'
                    },
                    row: true,
                    defaultIndex: 1,
                    dicFlag: false,
                    dicUrl: `/shop/shopClass/bigClass?str={{key}}`,
                    rules: [
                        {
                            required: true,
                            message: '请选择城市',
                            trigger: 'blur'
                        }
                    ]
                },
            ]},
        {
            icon:'el-icon-info',
            label: '申请人资料',
            prop: 'group',
            column: [
                {
                    label: "申请用户",
                    prop: "userId",
                    width: "100",
                    fixed: true,
                    rules: [{
                        required: true,
                        message: "",
                        trigger: "blur"
                    }]
                },
                /**店主姓名*/
                {
                    label: "店主姓名",
                    prop: "name",
                    width: "100",
                    fixed: true,
                    rules: [{
                        required: true,
                        message: "店主姓名",
                        trigger: "blur"
                    }]
                },
                /**店主姓名*/
                {
                    label: "店铺名称",
                    prop: "storeName",
                    width: "100",
                    fixed: true,
                    rules: [{
                        required: true,
                        message: "店铺名称",
                        trigger: "blur"
                    }]
                },
                /**店主身份证号*/
                {
                    label: "身份证号",
                    prop: "idNumber",
                    width: "100",
                    hide: true,
                    fixed: true,
                    rules: [{
                        required: true,
                        message: "身份证号",
                        trigger: "blur"
                    }]
                },
                /**手机号码*/
                {
                    label: "手机号码",
                    prop: "phone",
                    width: "100",
                    fixed: true,
                    rules: [{
                        required: true,
                        message: "手机号码",
                        trigger: "blur"
                    }]
                },
                /**店铺类型*/
                {
                    label: "店铺类型",
                    prop: "vipId",
                    width: "100",
                    type:"radio",
                    span:25,
                    fixed: true,
                    dicData: DIC.SHOPSTATUS,
                    rules: [{
                        required: true,
                        message: "店铺类型",
                        trigger: "blur"
                    }]
                },
        ]},{

        icon:'el-icon-info',
    label: '资质照片',
    prop: 'group',
    column: [
    {
        label: "营业执照",
        prop: "businessImgId",
        type:"upload",
        width: "100",
        fixed: true,
        listType: 'picture-img',
        props:{
            name:'label',
            url:'url'
        },
        canvasOption: {
            text: 'tracer',
            ratio: 0.1,
            color:'#FF3030',
        },
        action:"/upload/file/fileUplod?projectName=Tracer&modelName=ShopApply",
        rules: [{
            required: true,
            message: "",
            trigger: "blur"
        }]
    },
    /**店主姓名*/
    {
        label: "身份照片",
        prop: "cardImgId",
        type:"upload",
        width: "100",
        fixed: true,
        listType: 'picture-img',

        props:{
            name:'label',
            url:'url'
        },
        canvasOption: {
            text: 'tracer',
            ratio: 0.1
        },
        action:"/upload/file/fileUplod?projectName=Tracer&modelName=ShopApply",
        rules: [{
            required: true,
            message: "店主姓名",
            trigger: "blur"
        }]
    },
]},
    ],
    column:[
        {
            label: "编号",
            prop: "id",
            width: "20",
            fixed: true,
            hide: true,
            visdiplay: false,
            rules: [{
                required: true,
                message: "请输入编号",
                trigger: "blur"
            }]
        },
        {
            label: "申请用户",
            prop: "userId",
            width: "100",
            fixed: true,
            rules: [{
                required: true,
                message: "",
                trigger: "blur"
            }]
        },
        {
            label: "申请等级",
            prop: "vipId",
            width: "100",
            fixed: true,
            type:'radio',
            dicData: DIC.SHOPSTATUS,
            rules: [{
                required: true,
                message: "",
                trigger: "blur"
            }]
        },
        /**店主姓名*/
        {
            label: "店主姓名",
            prop: "name",
            width: "100",
            fixed: true,
            rules: [{
                required: true,
                message: "店主姓名",
                trigger: "blur"
            }]
        },
        /**店主身份证号*/
        {
            label: "身份证号",
            prop: "idNumber",
            width: "100",
            hide: true,
            fixed: true,
            rules: [{
                required: true,
                message: "店主身份证号",
                trigger: "blur"
            }]
        },
        /**店铺名称*/
        {
            label: "店铺名称",
            prop: "storeName",
            width: "100",
            fixed: true,
            rules: [{
                required: true,
                message: "店铺名称",
                trigger: "blur"
            }]
        },

        /**详细地址*/
        {
            label: "详细地址",
            prop: "address",
            hide: true,

            width: "100",
            fixed: true,
            rules: [{
                required: true,
                message: "详细地址",
                trigger: "blur"
            }]
        },
        /**邮政编码*/
        {
            label: "邮政编码",
            prop: "zip",
            hide: true,

            width: "100",
            fixed: true,
            rules: [{
                required: true,
                message: "邮政编码",
                trigger: "blur"
            }]
        },
        /**手机号码*/
        {
            label: "手机号码",
            prop: "phone",
            width: "100",
            fixed: true,
            rules: [{
                required: true,
                message: "手机号码",
                trigger: "blur"
            }]
        },
        /**身份证照片*/
        {
            label: "证件照片",
            prop: "cardImgId",
            hide: true,

            width: "100",
            fixed: true,
            rules: [{
                required: true,
                message: "身份证照片",
                trigger: "blur"
            }]
        },
        /**0：提交申请，1：申请成功，2：申请失败*/
        {
            label: "当前状态",
            prop: "applyStatus",
            width: "150",
            fixed: true,
            type:"switch",
            slot:true,
            rules: [{
                required: true,
                message: "0：开启，1：关闭，2：申请失败",
                trigger: "blur"
            }]
        },
        /**营业执照照片*/
        {
            label: "执照照片",
            prop: "businessImgId",
            hide: true,
            width: "100",
            fixed: true,
            rules: [{
                required: true,
                message: "营业执照照片",
                trigger: "blur"
            }]
        },
    ]

};

